package cn.com.w.bootdemo.vo;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class UserVo{

    /**
     * id
     */
    @NotBlank(message = "用户 id 不可为空。")
    private String id;

    /**
     * 姓名
     */
    @NotNull(message = "用户姓名不可为空。")
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 手机
     */
    private String phone;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }



}
